home *** CD-ROM | disk | FTP | other *** search
- ; RagTag, version 0.03
- ;
- ; ProComm Plus script for adding taglines to messages written online,
- ; using the John Hancock (JH) program, version 2.
- ;
- ; Written by Maurice Crouse, 29 March 1990.
- ; Revision 0.02 written 2 April 1990.
- ; Revision 0.03 written 12 April 1990.
- ; ProComm Plus adaptation written 24 April 1990.
- ;
- ; See RAGTAGPC.DOC file for documentation on how to use this script.
-
-
- assign s0 " * RagTag 0.03 * " ;logo
- assign s1 "---" ;"tear" line
- assign s2 "^M" ;equate for carriage return
- assign s3 " " ;equate for space character
- assign s4 "c:\qmail" ;put your JH directory here
- assign s5 "c:\pro" ;put your PCPlus directory here
- chdir s4 ;change to JH directory
- dos "if exist jh?.rep del jh?.rep" ;delete any old .REP files
- run "jh" ;run JH
- if failure ;if it can't be run,
- message "Can't run JH." ;admit it,
- goto got_error ;and quit.
- endif
- dos "if exist jh?.rep ren jh?.rep jhx.rep" ;rename .REP file
- fopeni "jhx.rep" text ;open .REP file
- if failure
- message "Can't find the tagline file." ;if it can't be opened,
- goto got_error ;admit it.
- endif ;if we get this far, no errors have been made
- fgets s6 ;copy tagline into variable
- fclosei ;close .REP file
- chdir s5 ;change back to PCP directory
- transmit s3 ;create a blank line
- transmit s2
- transmit s1 ;send the "tear" line
- transmit s2
- transmit s0 ;send the logo,
- transmit s6 ;and send the tagline
- transmit s2
- exit
- got_error: ;if we end up here, errors have been made
- fclosei ;close .REP file
- message "Sorry, can't add the tagline." ;admit failure
- chdir s5 ;change back to PCP directory
- exit
-